package com.gelsanalyzer.ui.swing.command;

import com.gelsanalyzer.business.control.*;

import javax.swing.*;

public class AddCourseCommand extends JMenuItem implements Command {

    private final Handler handler;

    public AddCourseCommand(String label, Handler handler) {
        super(label);
        this.handler = handler;
    }

    public void Execute() {
        ((CourseEntryHandler)handler).fireAddCourse(); 
    }

}
